import request from '../utils/request'
// 获取文章详情
export const getDetailArt = function (id) {
  return request.get('/v1_0/articles/' + id)
}
// ------------------------------------------------
// 获取点赞
export const getLike = function (target) {
  return request.post('/v1_0/article/likings', {
    target
  })
}
// 获取取消点赞
export const getNoLike = function (artid) {
  return request.delete('/v1_0/article/likings/' + artid)
}
// ------------------------------------------------
// 获取关注
export const getFollow = function (target) {
  return request.post('/v1_0/user/followings', { target })
}
// 获取取消关注
export const getCancelFollow = function (target) {
  return request.delete('/v1_0/user/followings/' + target)
}
// ------------------------------------------------
